package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
// user_model
@TableName(value = "user")
public class UserModel {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    @TableField(select = false)
    private String password;
    private Integer age;

    @TableField(value = "tel")
    private String phone;

    private String idCard;

    @TableField(exist = false)
    private Integer gender;
    /**
     * 逻辑删除字段
     */
    private Integer deleted;

    @Version
    private Integer version;

}
